package com.hex.liyue.mainmodule.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.hex.liyue.R;
import com.hex.liyue.commonmodule.fragment.BaseFragment;
import com.hex.liyue.launchdatemodule.activity.LaunchDateActivity;
import com.hex.liyue.launchdatemodule.activity.LaunchListActivity;
import com.hex.liyue.lookingdatemodule.activity.HotNewDateActivity;
import com.hex.liyue.lookingdatemodule.activity.LookingListActivity;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * 这是主界面礼的首页碎片
 * Created by WJ on 2016/6/6.
 */
public class FragmentHome extends BaseFragment {
    @Bind(R.id.tv_toobar_title)
    TextView tvToobarTitle;
    private Intent intent;

    @Override
    public void initdata(Bundle arguments) {

    }

    @Override
    public int getContentLayout() {
        return R.layout.fragment_home;
    }

    @Override
    protected void bindPresenter() {

    }

    @Override
    protected void initToolbar() {
        tvToobarTitle.setText("绅士之礼，土豪之约");
    }


    @OnClick({R.id.iv_search_date, R.id.iv_start_date, R.id.tv_launch_list, R.id.tv_looking_list})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.iv_search_date:
                intent = new Intent(getActivity(), HotNewDateActivity.class);
                startActivity(intent);
                break;
            case R.id.iv_start_date:
                intent = new Intent(getActivity(), LaunchDateActivity.class);
                startActivity(intent);
                break;
            case R.id.tv_launch_list:
                intent = new Intent(getActivity(), LaunchListActivity.class);
                startActivity(intent);
                break;
            case R.id.tv_looking_list:
                intent = new Intent(getActivity(), LookingListActivity.class);
                startActivity(intent);
                break;
        }
    }


}
